package net.whg.java.callback;

public class AsyncTaskDemo {

    public static void main(String[] args) {
        /*AsyncTask task = new AsyncTask(new TaskCallback() {
            @Override
            public void onTaskComplete() {
                System.out.println("Task complete!");
            }
        });*/
        AsyncTask task = new AsyncTask(() -> System.out.println("Task complete!"));
        task.execute();
    }
}
